<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> {$errnum?$errnum:404} 页面</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="{$Think.const.RESOURCE}css/font.css">
    <link rel="stylesheet" href="{$Think.const.RESOURCE}css/xadmin.css">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="{$Think.const.RESOURCE}lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="{$Think.const.RESOURCE}js/xadmin.js"></script>
</head>

<body class="gray-bg">


<div class="middle-box text-center animated fadeInDown">
    <h2 style="color: #c5c5c5;font-size: 3em">{$errnum?$errnum:404}</h2>
    <div class="text-danger" style="font-size:1.8em;font-weight: 300;">{$msg}</div>
    <br>

    <br>

    <div class="error-desc">
        <div class="" style="font-size:1em;font-weight: 300;">几秒后关闭</div>
        <a type="button"  onclick="window.close();" style="margin-left: 30px;color: #949494;">- 按【ESC】键  立刻关闭页面 - </a>
    </div>
</div>

<!-- 全局js -->
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
<script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
<script>
    $(document).keyup(function(event){
        if (event.keyCode === 27){
            //alert('event.keyCode'); //键码
            window.close();
            // layer.closeAll();
            // window.opener.location.reload();
            // window.location.reload();
        }
    });

    function reloadyemian() {
        window.close();
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
        // window.opener.location.reload();
        // window.location.reload();
        // location.reload();
    }
    var closetime = <?php echo $closetime?$closetime:3000; ?>;
    window.setTimeout("reloadyemian();",closetime);
</script>



</body>

</html>
